#!/bin/bash

currentDir=${PWD}
echo "currentDir=" ${currentDir}

current_basedir=$(basename $currentDir)
echo "rm =" ${current_basedir}

ELFNAME=".elf"
ELFNAME=${current_basedir}${ELFNAME}
echo "ELFNAME=" ${ELFNAME}

if [ -e ${ELFNAME} ]; then
    rm ${ELFNAME}
fi

make clean;make

./$ELFNAME 
